package com.zhangsr.zus.config.api;

/**
 * @Author: zhangsr
 */
public class ZusProtocolConfig extends AbstractConfig {

    // 服务协议
    private String name;

    // 服务IP地址(多网卡时使用)
    private String host;

    // 服务端口
    private Integer port;

    //------------------ setter && getter ------------------

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        if (id == null || id.length() == 0) {
            id = name;
        }
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }
}
